package day319.demo2;

public class Calculate {
    //加
    public static int add(int num1,int num2){
        int sum = 0;
        sum = num1+num2;
        return sum;
    }
    //减
    public static int subtract(int num1,int num2){
        int sum = 0;
        sum = num1-num2;
        return sum;
    }
    //乘
    public static int multiply(int num1,int num2){
        int sum = 0;
        sum = num1*num2;
        return sum;
    }
    //除
    public static double except(double num1,double num2){
        double sum = 0;
        sum = num1/num2;
        return sum;
    }

}
